package com.xdtech.trans.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import com.xdtech.sys.model.User;

/**
 * 
 * @author max.zheng
 * @create 2015-05-28 00:20:05
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="TRANS_PERSON")
@PrimaryKeyJoinColumn(name="ID") 
public class Person extends User implements Serializable{
	private static final long serialVersionUID = 1L;
	@Column(name="POSITION_STATUS")
	private String positionStatus;
	@Column(name="PERSON_TYPE")
	private String personType;
	@Column(name="PERSON_POSITION")
	private String personPosition;
	@Column(name="ID_CARD")
	private String idCard;
	@Column(name="CARD_ADDRESS")
	private String cardAddress;
	@Column(name="HOME_ADDRESS")
	private String homeAddress;
	@Column(name="BIRTHDAY")
	private String birthday;
	@Column(name="MARITAL_STATUS")
	private String maritalStatus;
	@Column(name="EDUCATION_LEVEL")
	private String educationLevel;
	@Column(name="HIRE_DATE")
	private String hireDate;
	@Column(name="DEPARTURE_DATE")
	private String departureDate;
	@Column(name="CONTRACT")
	private String contract;
	@Column(name="MOBILE_PHONE")
	private String mobilePhone;
	@Column(name="TELEPHONE")
	private String telephone;
	@Column(name="STATE_PROVINCE")
	private String stateProvince;
	@Column(name="CONTRACT_ADDRESS")
	private String contractAddress;
	@Column(name="POST_CODE")
	private String postCode;
	@Column(name="EMAIL")
	private String email;
	@Column(name="FAX")
	private String fax;
	@Column(name="QQ")
	private String qq;
	@ManyToOne
	@JoinColumn(name = "WEBSITE_ID")
	private TransWebSite webSite;
	public void setPersonType(String personType) {
		this.personType = personType;
	}
	public String getPersonType() {
		return personType;
	}
	public void setPersonPosition(String personPosition) {
		this.personPosition = personPosition;
	}
	public String getPersonPosition() {
		return personPosition;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setCardAddress(String cardAddress) {
		this.cardAddress = cardAddress;
	}
	public String getCardAddress() {
		return cardAddress;
	}
	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}
	public String getHomeAddress() {
		return homeAddress;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setMaritalStatus(String maritalStatus) {
		this.maritalStatus = maritalStatus;
	}
	public String getMaritalStatus() {
		return maritalStatus;
	}
	public void setEducationLevel(String educationLevel) {
		this.educationLevel = educationLevel;
	}
	public String getEducationLevel() {
		return educationLevel;
	}
	public void setHireDate(String hireDate) {
		this.hireDate = hireDate;
	}
	public String getHireDate() {
		return hireDate;
	}
	public void setDepartureDate(String departureDate) {
		this.departureDate = departureDate;
	}
	public String getDepartureDate() {
		return departureDate;
	}
	public void setContract(String contract) {
		this.contract = contract;
	}
	public String getContract() {
		return contract;
	}
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	public String getMobilePhone() {
		return mobilePhone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setStateProvince(String stateProvince) {
		this.stateProvince = stateProvince;
	}
	public String getStateProvince() {
		return stateProvince;
	}
	public void setContractAddress(String contractAddress) {
		this.contractAddress = contractAddress;
	}
	public String getContractAddress() {
		return contractAddress;
	}
	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}
	public String getPostCode() {
		return postCode;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail() {
		return email;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getFax() {
		return fax;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getQq() {
		return qq;
	}
	public String getPositionStatus()
	{
		return positionStatus;
	}
	public void setPositionStatus(String positionStatus)
	{
		this.positionStatus = positionStatus;
	}
	public TransWebSite getWebSite() {
		return webSite;
	}
	public void setWebSite(TransWebSite webSite) {
		this.webSite = webSite;
	}
}
